from django.db import migrations
from django.contrib.auth.hashers import make_password

def create_superuser(apps, schema_editor):
    User = apps.get_model('users', 'User')
    User.objects.create(
        username='49',
        email='admin@example.com',
        phone='13800000000',
        password=make_password('123456'),
        identity='enterprise',
        is_superuser=True,
        is_active=True
    )

class Migration(migrations.Migration):
    dependencies = [
        ('users', '01_initial'),
    ]

    operations = [
        migrations.RunPython(create_superuser),
    ]